interface Phone {
    abstract void dial();
    abstract void location();
    abstract void photo();
    abstract void music();
    abstract void video();
}
abstract class PhoneAdapter implements Phone {
    public void dial(){}
    public void location(){}
    public void photo(){}
    public void music(){}
    public void video(){}
}
class OldPhone extends PhoneAdapter {
    @Override
    public void dial() {
        System.out.println("拨号功能");
    }
    @Override
    public void location() {
        System.out.println("定位功能");
    }
}

class HuawPhone extends PhoneAdapter {
    @Override
    public void dial() {
        System.out.println("拨号功能");
    }

    @Override
    public void photo() {
        System.out.println("拍照功能");
    }

    @Override
    public void music() {
        System.out.println("音乐功能");
    }

    @Override
    public void video() {
        System.out.println("视频功能");
    }
}
public class Test_4 {
    public static void main(String[] args) {
        PhoneAdapter P1 = new HuawPhone();
        System.out.println("华为手机能实现的功能有->");
        P1.dial();
        P1.location();
        P1.music();
        P1.photo();
        P1.video();
        PhoneAdapter P2 = new OldPhone();
        System.out.println("老手机能实现的功能有->");
        P2.dial();
        P2.location();

    }
}
